package cn.kgc.disk.timer;

import java.util.Timer;
import java.util.TimerTask;

public class TimerTest {
    public static void main(String[] args) {
        Timer timer=new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("每月15好12点半发工资");
            }
        }, 5000, 1000);
        timer.cancel();
    }
}
